Custom Test Ide Task
Runs plugin tests against the currently selected IntelliJ Platform with the built plugin loaded. It directly extends the Test Gradle task, which allows for an extensive configuration (system properties, memory management, etc.).
This task class also inherits from CustomIntelliJPlatformVersionAware, which makes it possible to create testIde-like tasks using custom IntelliJ Platform versions:
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import org.jetbrains.intellij.platform.gradle.tasks.CustomTestIdeTask
tasks {
val testPhpStorm by registering(CustomTestIdeTask::class) {
type = IntelliJPlatformType.PhpStorm
version = "2023.2.2"
}
val testLocalIde by registering(CustomTestIdeTask::class) {
localPath = file("/Users/hsz/Applications/Android Studio.app")
}
}Properties
The path to the coroutines Java Agent file.
Path to a properties file which will be used to configure the frontend process if the IDE is started in Split Mode.
Holds the Configurations.INTELLIJ_PLATFORM configuration with the IntelliJ Platform dependency added. It should not be directly accessed.
Holds the Configurations.INTELLIJ_PLATFORM_PLUGIN_DEPENDENCY configuration with the optional custom IntelliJ Platform plugins dependencies added. It should not be directly accessed.
Provides access to the IntelliJ Platform dependency artifact path.
Provides information about the IntelliJ Platform product. The information is retrieved from the product-info.json file in the IntelliJ Platform directory.
An architecture of the Java Runtime currently used for running Gradle.
Java Runtime parent directory.
A custom JavaLauncher instance configured with the resolved runtimeDirectory.
Metadata object of the Java Runtime currently used for running Gradle.
A configuration directory located within the sandboxContainerDirectory.
The container for all sandbox-related directories. The directory name depends on the platform type and version currently used for running a task.
A log directory located within the sandboxContainerDirectory.
A plugins directory located within the sandboxContainerDirectory.
Represents the suffix used i.e., for test-related tasks.
A system directory located within the sandboxContainerDirectory.
An input property to configure the type of the custom IntelliJ Platform.
Functions
Adds plugins to the custom IntelliJ Platform using the specified configuration.
Validates that the resolved IntelliJ Platform is supported by checking against the minimal supported IntelliJ Platform version.